﻿<%@ Page Title="" Language="C#" MasterPageFile="ReconSite.Master" AutoEventWireup="true"
    CodeBehind="ReconSignIn.aspx.cs" Inherits="Recon.Portal.WebUI.ReconSignIn" %>

<%@ MasterType VirtualPath="ReconSite.Master" %>
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">
    <title>Recon Sign In</title>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" style="width: 45%">
        <h2 class="formTitle">Sign In</h2>
        <span id="mandatoryMessage" class="formError">Enter Sign In details and click Submit.</span>
        <br />
        <asp:Login ID="SignInControl" runat="server" ValidatorTextStyle-CssClass="formError"
            TitleText="" RenderOuterTable="False" OnAuthenticate="SignInControl_Authenticate"
            OnLoggedIn="SignInControl_LoggedIn" VisibleWhenLoggedIn="False" DestinationPageUrl="~/ReconHome.aspx"
            DisplayRememberMe="False">

            <%-- <LayoutTemplate>
                <div>
                    <asp:Label ID="lblCustID" runat="server" Text="Customer ID: " />
                    <asp:TextBox ID="txtCustID" runat="server" />
                    <asp:RequiredFieldValidator ID="reqCustID" runat="server" ControlToValidate="txtCustID"
                        ErrorMessage="Customer ID is required." Display="Dynamic" SetFocusOnError="True" />
                    <br />
                    <asp:Label ID="lblUserName" runat="server" Text="User ID: " />
                    <asp:TextBox ID="UserName" runat="server" />
                    <asp:RequiredFieldValidator ID="reqUserName" runat="server" ControlToValidate="UserName"
                        ErrorMessage="User ID is required." Display="Dynamic" SetFocusOnError="True" />
                    <br />
                    <asp:Label ID="lblPassword" runat="server" Text="Password: " />
                    <asp:TextBox ID="Password" runat="server" TextMode="Password" />
                    <asp:RequiredFieldValidator ID="reqPassword" runat="server" ControlToValidate="Password"
                        ErrorMessage="Passsword is required." Display="Dynamic" SetFocusOnError="True" />
                </div>
                <div>
                    <asp:Button ID="Login" runat="server" CommandName="Login" Text="Sign In" />
                </div>
                <div>
                <asp:Label ID="lblValidationFailure" runat="server" Visible="false">
                Sign In failed.<br />
                This may be due to one of the following reasons:
                <ul>
                <li>The specified Customer ID, User ID and Passsword combination is incorrect.</li>
                <li>The specified User ID is blocked.</li>
                <li>The specified User ID is inactive.</li>
                <li>The specified User ID is unauthorized.</li>
                </ul>
                </asp:Label>
                </div>
            </LayoutTemplate> --%>


            <LayoutTemplate>
                <div>
                    <table cellspacing="1" cellpadding="1" border="0">

                        <tr>
                            <td align="right">
                                <asp:Label ID="lblCustID" runat="server" Text="Customer ID: " /></td>
                            <td>
                                <asp:TextBox ID="txtCustID" runat="server" />
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="reqCustID" runat="server" ControlToValidate="txtCustID"
                                    ErrorMessage="Customer ID is required." Display="Dynamic" SetFocusOnError="True" /></td>
                            <br />
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblUserName" runat="server" Text="User ID: " /></td>
                            <td>
                                <asp:TextBox ID="UserName" runat="server" />
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="reqUserName" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="User ID is required." Display="Dynamic" SetFocusOnError="True" /></td>
                            <br />
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblPassword" runat="server" Text="Password: " /></td>
                            <td>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" />
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="reqPassword" runat="server" ControlToValidate="Password"
                                    ErrorMessage="Passsword is required." Display="Dynamic" SetFocusOnError="True" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="right">
                                <asp:Button ID="Login" runat="server" CommandName="Login" Text="Sign In" />
                            </td>
                        </tr>
                    </table>
                </div>

                <div>
                    <asp:Label ID="lblValidationFailure" runat="server" Visible="false">
                Sign In failed.<br />
                This may be due to one of the following reasons:
                <ul>
                <li>The specified Customer ID, User ID and Passsword combination is incorrect.</li>
                <li>The specified User ID is blocked.</li>
                <li>The specified User ID is inactive.</li>
                </ul>
                    </asp:Label>
                </div>
            </LayoutTemplate>


            <ValidatorTextStyle BackColor="#FFFFFF" BorderColor="#FF0000" BorderStyle="Solid"
                BorderWidth="0.5px" Font-Names="Verdana" Font-Size="1.3em" ForeColor="#FF0000" />
        </asp:Login>
        <br />
        <br />
        <b>Forgot Password?</b> To reset online <asp:HyperLink ID="lnkForgotPassword" runat="server" NavigateUrl="ForgotPasswordPage.aspx" Text="Click here" />.
    </div>
</asp:Content>
